<template>
  <div class="cad-test-container">
    <div class="cad-viewer">
      <div class="cad-title">CAD图纸查看测试</div>
      <div class="cad-content">
        <iframe 
          src="//sharecad.org/cadframe/load?url=http://www.cadsofttools.com/dwgviewer/floorplan.dwg" 
          class="cad-frame"
          scrolling="no"
        ></iframe>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CadTest',
  data() {
    return {
      // 可以在这里添加需要的数据
    }
  }
}
</script>

<style scoped>
.cad-test-container {
  padding: 20px;
  background: #f0f2f5;
  min-height: 100vh;
}

.cad-viewer {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cad-title {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}

.cad-content {
  padding: 20px;
  height: calc(100vh - 140px);
}

.cad-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}
</style> 